package org.sunflower.t.wxpaytest.infrastructure.annotation;

import org.springframework.context.annotation.Import;
import org.sunflower.t.wxpaytest.infrastructure.WxPayV3ImportSelector;

import java.lang.annotation.*;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-09-26 11:30
 **/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import({WxPayV3ImportSelector.class})
public @interface EnableWxPayV3 {
    /**
     * 自动对微信的回调加密
     */
    boolean autoEncrypt() default true;

    /**
     * 自动对微信的回调解密
     */
    boolean autoDecrypt() default true;
}
